﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 商品信息库
    /// </summary>
    public class ProductBase
    {
        #region 内部字段
        private string productid = "{00000000-0000-0000-0000-000000000000}";
        private string categoryid = "{00000000-0000-0000-0000-000000000000}";
        private string categoryname = "";
        private string categorynumber = "";
        private string productnumber = "";
        private string productname = "";
        private string titlePicture = "";
        private decimal price = 0;
        private decimal price1 = 0;
        private decimal price2 = 0; //integral
        private decimal marketprice = 0;
        private int brandId = 0;
        private string brandName = "";
        private string modelName = "";
        private DateTime createdon;
        private DateTime modifiedon;
        private string createdby = "{00000000-0000-0000-0000-000000000000}";
        private string modifiedby = "{00000000-0000-0000-0000-000000000000}";
        private string createdbyname = "";
        private string modifiedbyname = "";
        private int statuscode = 0;
        private string statusTitle = ""; 
        private int stockStatus = 0;
        private int stockAmount = 0;
        private string description = "";
        private string briefdescription = "";
        private int productTypeCode = 0; 
        private string warrantyinfo = "";  // country
        private string approvals = "";  // grape
        private string capable = "";    //
        private string powerstorageornot = ""; //BrandType
        private string colortones = "";
        private string power = "";  // capacity
        private string voltage = ""; 
        private string dimmable = ""; 
        private string package = ""; 
        private string life = ""; 
        private string lampholder = ""; 
        private string lightsourcechip = ""; 
        private string illuminant = "";
        private string remarks = "";
        private string material = "";
        private string correlatedcolortemperature = "";
        private string supplyability = "";
        private string targetmarkets = "";
        private string led = "";
        #endregion

        #region 公共属性
        /// <summary>
        /// 
        /// </summary>
        public string ProductId
        {
            set { productid = value; }
            get { return productid; }
        }
        /// <summary>
        /// 所属分类
        /// </summary>
        public string CategoryId
        {
            set { categoryid = value; }
            get { return categoryid; }
        }
        /// <summary>
        /// 所属分类
        /// </summary>
        public string CategoryNumber
        {
            set { categorynumber = value; }
            get { return categorynumber; }
        }
        /// <summary>
        /// 所属分类
        /// </summary>
        public string CategoryName
        {
            set { categoryname = value; }
            get { return categoryname; }
        }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductNumber
        {
            set { productnumber = value; }
            get { return productnumber; }
        }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName
        {
            set { productname = value; }
            get { return productname; }
        }
        /// <summary>
        /// 标题图片
        /// </summary>
        public string TitlePicture
        {
            set { titlePicture = value; }
            get { return titlePicture; }
        } 
        /// <summary>
        /// 售价
        /// </summary>
        public decimal Price
        {
            set { price = value; }
            get { return price; }
        }
        /// <summary>
        /// 售价1
        /// </summary>
        public decimal Price1
        {
            set { price1 = value; }
            get { return price1; }
        }
        /// <summary>
        /// 售价2 积分Integral
        /// </summary>
        public decimal Price2
        {
            set { price2 = value; }
            get { return price2; }
        }
        /// <summary>
        /// 市场价
        /// </summary>
        public decimal MarketPrice
        {
            set { marketprice = value; }
            get { return marketprice; }
        }
        /// <summary>
        /// 品牌Id
        /// </summary>
        public int BrandId
        {
            set { brandId = value; }
            get { return brandId; }
        }
        /// <summary>
        /// 品牌名称
        /// </summary>
        public string BrandName
        {
            set { brandName = value; }
            get { return brandName; }
        }

        /// <summary>
        /// 型号
        /// </summary>
        public string ModelName
        {
            set { modelName = value; }
            get { return modelName; }
        } 
        /// <summary>
        /// 状态, 1 上架, 0 下架
        /// </summary>
        public int StatusCode
        {
            set { statuscode = value; }
            get { return statuscode; }
        }
        /// <summary>
        /// 状态, 1 上架, 0 下架
        /// </summary>
        public string StatusTitle
        {
            set { statusTitle = value; }
            get { return statusTitle; }
        }
        
        /// <summary>
        /// 库存状态, 0 正常, 1 缺货
        /// </summary>
        public int StockStatus
        {
            set { stockStatus = value; }
            get { return stockStatus; }
        }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int StockAmount
        {
            set { stockAmount = value; }
            get { return stockAmount; }
        }
 
        /// <summary>
        /// 描述信息
        /// </summary>
        public string Description
        {
            set { description = value; }
            get { return description; }
        }
        /// <summary>
        /// 描述信息
        /// </summary>
        public string BriefDescription
        {
            set { briefdescription = value; }
            get { return briefdescription; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreatedOn
        {
            set { createdon = value; }
            get { return createdon; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime ModifiedOn
        {
            set { modifiedon = value; }
            get { return modifiedon; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string CreatedBy
        {
            set { createdby = value; }
            get { return createdby; }
        }

        /// <summary>
        /// 
        /// </summary>
        public string CreatedByName
        {
            set { createdbyname = value; }
            get { return createdbyname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ModifiedBy
        {
            set { modifiedby = value; }
            get { return modifiedby; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string ModifiedByName
        {
            set { modifiedbyname = value; }
            get { return modifiedbyname; }
        }
        /// <summary>
        /// 商品类型：1 零售商品，2 团购商品
        /// </summary>
        public int ProductTypeCode
        {
            set { productTypeCode = value; }
            get { return productTypeCode; }
        }  
        /// <summary>
        /// Warranty Info  ==country
        /// </summary>
        public string WarrantyInfo
        {
            set { warrantyinfo = value; }
            get { return warrantyinfo; }
        }
        /// <summary>
        /// Approvals ==grape
        /// </summary>
        public string Approvals
        {
            set { approvals = value; }
            get { return approvals; }
        }
        /// <summary>
        /// Capable
        /// </summary>
        public string Capable
        {
            set { capable = value; }
            get { return capable; }
        }
        /// <summary>
        /// Power Storage or Not ==BrandType
        /// </summary>
        public string PowerStorageorNot
        {
            set { powerstorageornot = value; }
            get { return powerstorageornot; }
        }
        /// <summary>
        /// Color Tones
        /// </summary>
        public string ColorTones
        {
            set { colortones = value; }
            get { return colortones; }
        }
        /// <summary>
        /// Power ==capacity
        /// </summary>
        public string Power
        {
            set { power = value; }
            get { return power; }
        }
        /// <summary>
        /// Voltage
        /// </summary>
        public string Voltage
        {
            set { voltage = value; }
            get { return voltage; }
        }
        /// <summary>
        /// Dimmable
        /// </summary>
        public string Dimmable
        {
            set { dimmable = value; }
            get { return dimmable; }
        }
        /// <summary>
        /// Package
        /// </summary>
        public string Package
        {
            set { package = value; }
            get { return package; }
        }
        /// <summary>
        /// Life
        /// </summary>
        public string Life
        {
            set { life = value; }
            get { return life; }
        }
        /// <summary>
        /// Lamp Holder
        /// </summary>
        public string LampHolder
        {
            set { lampholder = value; }
            get { return lampholder; }
        }
        /// <summary>
        /// Light Source Chip
        /// </summary>
        public string LightSourceChip
        {
            set { lightsourcechip = value; }
            get { return lightsourcechip; }
        }
        /// <summary>
        /// Illuminant
        /// </summary>
        public string Illuminant
        {
            set { illuminant = value; }
            get { return illuminant; }
        }
        /// <summary>
        /// Remarks
        /// </summary>
        public string Remarks
        {
            set { remarks = value; }
            get { return remarks; }
        }
        /// <summary>
        /// Material
        /// </summary>
        public string Material
        {
            set { material = value; }
            get { return material; }
        }
        /// <summary>
        /// Correlated Color Temperature
        /// </summary>
        public string CorrelatedColorTemperature
        {
            set { correlatedcolortemperature = value; }
            get { return correlatedcolortemperature; }
        }
        /// <summary>
        /// Supply Ability
        /// </summary>
        public string SupplyAbility
        {
            set { supplyability = value; }
            get { return supplyability; }
        }
        /// <summary>
        /// Target Markets
        /// </summary>
        public string TargetMarkets
        {
            set { targetmarkets = value; }
            get { return targetmarkets; }
        }
        /// <summary>
        /// LED
        /// </summary>
        public string LED
        {
            set { led = value; }
            get { return led; }
        }
        #endregion
    }
}
